package ru.simplemaps.osmapi.objects;

/**
 * @author enaku_adm
 * @since 22.07.2010 11:11:36
 */
public class Node extends AbstractOSMElement {

    public final double lat;
    public final double lon;

    public Node(long id, double lat, double lon) {
        super(id, OSMElementType.node);
        this.lat = lat;
        this.lon = lon;
    }

    @Override
    public boolean equalsFull(Object o) {
        boolean eqFullSuper = super.equalsFull(o);

        if (!eqFullSuper) return false;

        Node other = (Node) o;

        return lat == other.lat && lon == other.lon;
    }
}
